{{template "Public/header.html" .}}
<script language="javascript" src="/public/js/Module/announce.js"></script>

<body>
	<div class="subnav">
		<div class="content-menu ib-a blue line-x">
			<a href='javascript:;' class="on"><em>公告管理</em></a><span>|</span>
			<a href='/Announce/add/'><em>添加公告</em></a>
		</div>
	</div>
	<div class="pad_10">
		<div class="table-list">
			<form name="myform" action="/Announce/order/" method="post">
				<table width="100%" cellspacing="0">
					<thead>
						<tr>
							<th width="10%">序号</th>
							<th align="left">标题</th>
							<th width="15%" align="left">起始日期</th>
							<th width="15%" align="left">截止日期</th>
							<th width="8%" align="left">浏览次数</th>
							<th width="5%" align="left">状态</th>
							<th width="15%">发表时间</th>
							<th width="15%">管理操作</th>
						</tr>
					</thead>
					<tbody>
						{{if .announce_list}}
							{{range .announce_list}}
							<tr>
								<td align="center">{{.Id}}</td>
								<td>{{.Title}}</td>	
								<td>{{.Starttime}}</td>
								<td>{{.Endtime}}</td>
								<td>{{.Hits}}</td>
								<td>{{if eq .Status 1}}通过{{else}}待审核{{end}}</td>
								<td>{{.Createtime}}</td>
								<td width="10%" align="center">
								<a href="/Announce/edit/{{.Id}}/">修改</a> |
								<a href="javascript:;" onclick="delete_announce({{.Id}})">删除</a>
								</td>
							</tr>
							{{end}}
						{{end}}
					</tbody>
				</table>
				<div id="pages">{{.pages}}</div>
			</form>
		</div>
	</div>
</body>
{{template "Public/footer.html" .}}